/*
 * Copyright (c) 2023.
 *
 * 作者：bmy
 * 邮箱：2271608011@qq.com
 * gitee：https://gitee.com/bmycode
 * github：https://github.com/helpcode
 *
 */

@import "vars";
.line (@position: left) {
    border-@{position}: 1px solid @background;
}

.padding(@top: 0px, @right: 0px, @bottom: 0px, @left: 0px) {
    padding: @top @right @bottom @left;
    box-sizing: border-box;
}

.clearfix() {

    &:after,
    &:before {
        content: " ";
        display: table;
    }

    &:after {
        clear: both;
    }
}




// No Scrollbar
.no-scrollbar() {
    &::-webkit-scrollbar {
        display: none !important;
        width: 0 !important;
        height: 0 !important;
        -webkit-appearance: none;
        opacity: 0 !important;
    }
}


.ellipsis() {
    white-space: nowrap;
    text-overflow: ellipsis;
    overflow: hidden;
    word-wrap: break-word;
}

.flex(@align: center, @justify: center) {
    display: flex;
    align-items: @align;
    justify-content: @justify;
}

//超出显示省略号
.ellipsis() {
    overflow: hidden; //超出的文本隐藏
    text-overflow: ellipsis; //溢出用省略号显示
    white-space: nowrap; //溢出不换行
}